package cn.lwy.example.niit_race.dao;

import cn.lwy.example.niit_race.pojo.Matter;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MatterMapper {
    List<Matter> getMatterByUserId(int id);
    int getIdByUsername(String name);
    int getRoleIdByUsername(String name);
    void addMatter(Matter matter);
    Matter getMatterById(int id);
    void updateMatter(Matter matter);
    void delMatter(int id);
}
